<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class Like extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'like';
    protected $guarded = ['id'];


    public function insure()
    {
        return $this->hasOne(Insure::class, 'id', 'iid');
    }

    public function user()
    {
        return $this->hasOne(User::class, 'id', 'uid');
    }

}
